package com.library.bookinfo.pojo;

import java.util.Date;

public class BookInfo {
//    book_id VARCHAR(32) primary key, -- 图书id
//    book_name VARCHAR(50), -- 图书名称
//    book_categoryid VARCHAR(20), -- 图书类别
//    ISBN NVARCHAR(17), -- ISBN号码
//    book_no INT,  -- 图书号，就是同一isbn下的编号，内部编号
//    book_author NVARCHAR(50), -- 作者
//    book_brief NVARCHAR(80), -- 图书简介，这是一句话的简介，不是图书详情
//    book_price DOUBLE ,-- 图书价格
//    book_press NVARCHAR(80), -- 出版社名称
//    book_storage NVARCHAR(15) ,-- 图书存放货架号
//    book_publishtime DATE, -- 出版时间
//    book_status INT -- 当前状态，0：在库，或者1：借出。2：有人正在现场阅读。4：已损坏

    private String bookId; //book_id VARCHAR(32) primary key, -- 图书id
    private String bookName;//book_name VARCHAR(50), -- 图书名称
    private String bookCategoryid;// book_categoryid VARCHAR(20),图书分类id
    private  String ISBN;//ISBN号码
    private Integer bookNo;// INT,  -- 图书号，就是同一isbn下的编号，内部编号
    private String bookAuthor;//book_author NVARCHAR(50), -- 作者
    private  String bookBrief;//book_brief NVARCHAR(80), -- 图书简介，这是一句话的简介，不是图书详情
    private Double bookPrice;//book_price DOUBLE ,-- 图书价格
    private String bookPress;//book_press NVARCHAR(80), -- 出版社名称
    private String bookStorage;//book_storage NVARCHAR(15) ,-- 图书存放货架号
    private Date bookPublishtime;//book_publishtime DATE, -- 出版时间
    private Integer bookStatus;//book_status INT -- 当前状态，0：在库，或者1：借出。2：有人正在现场阅读。4：已损坏

    public BookInfo() {
    }

    public BookInfo(String bookId, String bookName, String bookCategoryid, String ISBN, Integer bookNo,
                    String bookAuthor, String bookBrief, Double bookPrice, String bookPress, String bookStorage,
                    Date bookPublishtime, Integer bookStatus) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.bookCategoryid = bookCategoryid;
        this.ISBN = ISBN;
        this.bookNo = bookNo;
        this.bookAuthor = bookAuthor;
        this.bookBrief = bookBrief;
        this.bookPrice = bookPrice;
        this.bookPress = bookPress;
        this.bookStorage = bookStorage;
        this.bookPublishtime = bookPublishtime;
        this.bookStatus = bookStatus;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBookCategoryid() {
        return bookCategoryid;
    }

    public void setBookCategoryid(String bookCategoryid) {
        this.bookCategoryid = bookCategoryid;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public Integer getBookNo() {
        return bookNo;
    }

    public void setBookNo(Integer bookNo) {
        this.bookNo = bookNo;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getBookBrief() {
        return bookBrief;
    }

    public void setBookBrief(String bookBrief) {
        this.bookBrief = bookBrief;
    }

    public Double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Double bookPrice) {
        this.bookPrice = bookPrice;
    }

    public String getBookPress() {
        return bookPress;
    }

    public void setBookPress(String bookPress) {
        this.bookPress = bookPress;
    }

    public String getBookStorage() {
        return bookStorage;
    }

    public void setBookStorage(String bookStorage) {
        this.bookStorage = bookStorage;
    }

    public Date getBookPublishtime() {
        return bookPublishtime;
    }

    public void setBookPublishtime(Date bookPublishtime) {
        this.bookPublishtime = bookPublishtime;
    }

    public Integer getBookStatus() {
        return bookStatus;
    }

    public void setBookStatus(Integer bookStatus) {
        this.bookStatus = bookStatus;
    }

    @Override
    public String toString() {
        return "BookInfo{" +
                "bookId='" + bookId + '\'' +
                ", bookName='" + bookName + '\'' +
                ", bookCategoryid='" + bookCategoryid + '\'' +
                ", ISBN='" + ISBN + '\'' +
                ", bookNo=" + bookNo +
                ", bookAuthor='" + bookAuthor + '\'' +
                ", bookBrief='" + bookBrief + '\'' +
                ", bookPrice=" + bookPrice +
                ", bookPress='" + bookPress + '\'' +
                ", bookStorage='" + bookStorage + '\'' +
                ", bookPublishtime=" + bookPublishtime +
                ", bookStatus=" + bookStatus +
                '}';
    }

}
